package org.museum.api.client;

import org.common.util.Result;
import org.museum.api.domain.IdentityName;
import org.museum.api.util.CommonResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "museumBackend-service", path = "/identity")
public interface IdentityBackendClient {
    //进行后端和前端的数据同步
    @PostMapping
    CommonResponse<Result> addIdentityName(@RequestBody IdentityName identityName);
}
